<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>

<body>
    <div id="app">
        <didnav></didnav>
        <didnav2></didnav2>
        <components is="didnav3"></components>
    </div>
    <script>
        Vue.component("didnav2",{
            template: `<div>{{nav}}</div>`,
                    data() {
                        return {
                            nav: 'didnav2'
                        }
                    }
        })
        Vue.component("didnav3",{
            template: `<div>{{nav}}</div>`,
                    data() {
                        return {
                            nav: 'didnav3'
                        }
                    }
        })
        Vue.component("didnav4",{
            template: `<div>{{nav}}</div>`,
                    data() {
                        return {
                            nav: 'didnav4'
                        }
                    }
        })
        new Vue({
            el:'#app',
            data() {
                return {

                };
            },
            components: {
                "didnav": {
                    template: `<div>{{nav}}</div>`,
                    data() {
                        return {
                            nav: 'didnav'
                        }
                    }
                }
            }


        })
    </script>

</body>

</html>